<div class="SiteContainer SignIn">
<h1><?=$lang['uHeader']?></h1>
	<div id="Form" class="SignInForm">
		<fieldset>
			<table width="100%" cellspacing="0">
<?php
	$count = 0;
	while ($row = mysql_fetch_array($query)){
		$row["descr"] = check_description(stripslashes($row["descr"]));
		$row["gm"] = check_gm($row["gm"]);
		
		if($olist == "online"){
			if($row['server'] == 1){ 		
?>
				<tr><td width="100%" class="button2" style="border-top: 1px solid white;" title="<?=$row['descr']?>" alt="<?=$row['descr']?>"><a href="<?=$link['vusers']?><?=$row['name']?>"><?=$row['name']?></a></td><td class="button" style="border-top: 1px solid white;"><a href="#"><?=$row['gm']?></a></td></tr>
<?php
				$count++;
			}
		} else {
?>
				<tr><td width="100%" class="button2" style="border-top: 1px solid white;" title="<?=$row['descr']?>" alt="<?=$row['descr']?>"><a href="<?=$link['vusers']?><?=$row['id']?>"><?=$row['name']?></a></td><td class="button" style="border-top: 1px solid white;"><a href="#"><?=$row['gm']?></a></td></tr>
<?php
		}
	}
	
	// Do the check for online users
	if($olist == "online"){
		if($count == 0){
?>
				<tr><td width="100%"><center><?=$lang['uNoOnline']?></center></td></tr>
<?php
		}
	}
?>
			</table>
		</fieldset>
	</div>
</div>